<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">

let a = "a";
let b = "b";
let c = "c";

[a, b, c] = [b, c, a];
console.error("a = " + a);
console.error("b = " + b);
console.error("c = " + c);
//ES6封装了上面这种写法用中间变量交换各变量的值

</script>

</body>
</html>